package com.iplant.ams.service.po.dms.scada.record;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.iplant.base.utils.general.CalendarTool;

import java.io.Serializable;
import java.util.Calendar;

public class DMSProcessRecordItem implements Serializable {
    public long ID = 0;

    public int RecordID = 0;
    public int DeviceID = 0;

    public String DeviceNo = "";

    public String AssetNo = "";
    public int ParameterID = 0;

    public int AnalysisOrder = 0;


    public String ParameterNo = "";

    public String ParameterName = "";

    public String ParameterDesc = "";

    public String ParameterValue = "";


    /**
     * 理论值
     */
    public Double TheoreticalValue = 0.0;

    /**
     * 下公差
     */
    public Double LowerTolerance = 0.0;
    /**
     * 上公差
     */
    public Double UpperTolerance = 0.0;


    /**
     * 误差
     */
    public Double ErrorValue = 0.0;


    /**
     * 超差
     */
    public Double OutOfTolerance = 0.0;


    public int DataType = 0;

    public int DataClass = 0;

    public Calendar SampleTime = CalendarTool.getBasicDate();


    @JsonProperty("ID")
    public long getID() {
        return ID;
    }

    public void setID(long ID) {
        this.ID = ID;
    }

    @JsonProperty("RecordID")
    public int getRecordID() {
        return RecordID;
    }

    public void setRecordID(int recordID) {
        RecordID = recordID;
    }

    @JsonProperty("DeviceID")
    public int getDeviceID() {
        return DeviceID;
    }

    public void setDeviceID(int deviceID) {
        DeviceID = deviceID;
    }

    @JsonProperty("DeviceNo")
    public String getDeviceNo() {
        return DeviceNo;
    }

    public void setDeviceNo(String deviceNo) {
        DeviceNo = deviceNo;
    }

    @JsonProperty("AssetNo")
    public String getAssetNo() {
        return AssetNo;
    }

    public void setAssetNo(String assetNo) {
        AssetNo = assetNo;
    }

    @JsonProperty("ParameterID")
    public int getParameterID() {
        return ParameterID;
    }

    public void setParameterID(int parameterID) {
        ParameterID = parameterID;
    }

    @JsonProperty("AnalysisOrder")
    public int getAnalysisOrder() {
        return AnalysisOrder;
    }

    public void setAnalysisOrder(int analysisOrder) {
        AnalysisOrder = analysisOrder;
    }

    @JsonProperty("ParameterNo")
    public String getParameterNo() {
        return ParameterNo;
    }

    public void setParameterNo(String parameterNo) {
        ParameterNo = parameterNo;
    }

    @JsonProperty("ParameterName")
    public String getParameterName() {
        return ParameterName;
    }

    public void setParameterName(String parameterName) {
        ParameterName = parameterName;
    }

    @JsonProperty("ParameterDesc")
    public String getParameterDesc() {
        return ParameterDesc;
    }

    public void setParameterDesc(String parameterDesc) {
        ParameterDesc = parameterDesc;
    }

    @JsonProperty("ParameterValue")
    public String getParameterValue() {
        return ParameterValue;
    }

    public void setParameterValue(String parameterValue) {
        ParameterValue = parameterValue;
    }

    @JsonProperty("TheoreticalValue")
    public Double getTheoreticalValue() {
        return TheoreticalValue;
    }

    public void setTheoreticalValue(Double theoreticalValue) {
        TheoreticalValue = theoreticalValue;
    }

    @JsonProperty("LowerTolerance")
    public Double getLowerTolerance() {
        return LowerTolerance;
    }

    public void setLowerTolerance(Double lowerTolerance) {
        LowerTolerance = lowerTolerance;
    }

    @JsonProperty("UpperTolerance")
    public Double getUpperTolerance() {
        return UpperTolerance;
    }

    public void setUpperTolerance(Double upperTolerance) {
        UpperTolerance = upperTolerance;
    }

    @JsonProperty("ErrorValue")
    public Double getErrorValue() {
        return ErrorValue;
    }

    public void setErrorValue(Double errorValue) {
        ErrorValue = errorValue;
    }

    @JsonProperty("OutOfTolerance")
    public Double getOutOfTolerance() {
        return OutOfTolerance;
    }

    public void setOutOfTolerance(Double outOfTolerance) {
        OutOfTolerance = outOfTolerance;
    }

    @JsonProperty("DataType")
    public int getDataType() {
        return DataType;
    }

    public void setDataType(int dataType) {
        DataType = dataType;
    }

    @JsonProperty("DataClass")
    public int getDataClass() {
        return DataClass;
    }

    public void setDataClass(int dataClass) {
        DataClass = dataClass;
    }

    @JsonProperty("SampleTime")
    public Calendar getSampleTime() {
        return SampleTime;
    }

    public void setSampleTime(Calendar sampleTime) {
        SampleTime = sampleTime;
    }
}
